/*!
\file GraphConfirmationDialog.cpp
\brief Contains implementation of GraphConfirmationDialog.
\ingroup GUI
*/

#include"GraphConfirmationDialog.h" 

GraphConfirmationDialog::GraphConfirmationDialog( QPixmap graph, QWidget *parent ):QDialog( parent ){
	m_layout = new QVBoxLayout(this);
	setLayout(m_layout);
	m_label = new QLabel(this);
	m_label->setPixmap(graph);
	m_layout->addWidget(m_label);
	
	m_label2 = new QLabel("Is this the graph you wish to select?", this);
	m_layout->addWidget(m_label2);
	
	m_buttons = new QDialogButtonBox( QDialogButtonBox::Yes|QDialogButtonBox::No, Qt::Horizontal, this );
	m_layout->addWidget(m_buttons);
	
	connect(m_buttons, SIGNAL(accepted()), this, SLOT(accept()));
	connect(m_buttons, SIGNAL(rejected()), this, SLOT(reject()));
}

